package com.weiweiqin.dao.impl;

import com.weiweiqin.dao.KjGoodsCustomerItemDao;
import com.weiweiqin.model.KjGoodsCustomerItem;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

@Repository
public class KjGoodsCustomerItemDaoImpl extends GenericMybatisDao<KjGoodsCustomerItem, Integer>
		implements KjGoodsCustomerItemDao {

	@SuppressWarnings("unchecked")
	public KjGoodsCustomerItem getByGoodsIdAndCustomerId(int goodsId,int customerId) {
		Map<String,Object> mp = new HashMap<String,Object>();
		mp.put("goodsId",goodsId);
		mp.put("customerId",customerId);
		return (KjGoodsCustomerItem) getSqlSession().selectOne("KjGoodsCustomerItem_getByGoodsIdAndCustomerId",mp);
	}
	
}